package main

import (
	"admin/router"
	"admin/tools"

	"github.com/gin-gonic/gin"
)

func main() {

	tools.InitConfig()

	tools.InitDb()
	r := gin.Default()
	r = router.Init(r)
	r.Run("0.0.0.0:8080") // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}
